package com.tjetc.dao;

import com.tjetc.pojo.dto.GuestDTO;
import com.tjetc.pojo.entity.Guest;
import com.tjetc.pojo.vo.GuestIdVO;

import java.util.List;

/**
 * @Author: itda
 * @Date: 2024/5/11 19:04
 * @Description: GuestDao
 */
public interface GuestDao {
    /**
     * 根据id获取顾客信息
     * @return
     */
    GuestDTO getById(Long guestId) throws Exception;

    /**
     * 用户--> 顾客
     * @param guestId
     */
    void insert(Long guestId) throws Exception;

    /**
     * 根据用户id查询用户id
     * @param userId
     * @return
     */
    GuestIdVO getByUserId(Long userId) throws Exception;


    /**
     * 根据用户id查询顾客信息
     * @param userId
     * @return
     */
    Guest getUserId(Long userId) throws Exception;

    /**
     * 根据用户id新增顾客
     * @param userId
     */
    void save(Long userId) throws Exception;
}
